package com.jielihaofeng.chat.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Feed列表项
 *
 * @author 借力好风 949394048@qq.com
 * @since 1.0.0 2022-07-22
 */
@Data
@Schema(description = "Feed列表项")
public class FeedItemVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "发送人id/群组id")
    private Long id;

    @Schema(description = "类型")
    private String type;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "用户名/群组名")
    private String name;

    @Schema(description = "标签")
    private String tag;

    @Schema(description = "时间字符串")
    private String time;

    @JsonIgnore
    @Schema(description = "时间")
    private Date date;

    @JsonIgnore
    @Schema(description = "时期")
    private String period;

    @Schema(description = "预览信息，格式为人名：消息内容")
    private String preview;

    @Schema(description = "是否在线")
    private Boolean online;

    @Schema(description = "个性签名/群组简介")
    private String description;
}
